﻿using System;
using System.Collections.Generic;
using Autodesk.Revit.DB;

namespace HYRElectric.MaterialStatistics
{
	public class XmlCategoryItems
	{
		public string Name { get; set; }

		public string StrBuiltInCategory { get; set; }

		public string Unit { get; set; }

		public List<XmlAttributeData> XmlItem { get; set; }

		public BuiltInCategory GetBuiltInCategory()
		{
			return (BuiltInCategory)Enum.Parse(typeof(BuiltInCategory), this.StrBuiltInCategory, true);
		}
	}
}
